* @ingroup FileRepo
*/
class LocalRepo extends FileRepo {
- public $oldFileFromRowFactory = array( 'OldLocalFile', 'newFromRow' );
-
protected $fileFactory = array( 'LocalFile', 'newFromTitle' );
protected $fileFactoryKey = array( 'LocalFile', 'newFromKey' );
protected $fileFromRowFactory = array( 'LocalFile', 'newFromRow' );
+ protected $oldFileFromRowFactory = array( 'OldLocalFile', 'newFromRow' );
protected $oldFileFactory = array( 'OldLocalFile', 'newFromTitle' );
protected $oldFileFactoryKey = array( 'OldLocalFile', 'newFromKey' );
$r = array();
foreach ( $res as $row ) {
- if ( $this->repo->oldFileFromRowFactory ) {
- $r[] = call_user_func( $this->repo->oldFileFromRowFactory, $row, $this->repo );
- } else {
- $r[] = OldLocalFile::newFromRow( $row, $this->repo );
- }
+ $r[] = $this->repo->newFileFromRow( $row );
}
if ( $order == 'ASC' ) {